export const ADDUSER = Symbol('add-user')
export const UPDATEUSER = Symbol('update-user')
export const DELUSER = Symbol('del-user')

/** 添加一个用户，user用户信息*/
export const createAddUserAction = (user) => ({ type: ADDUSER, payload: user })
/** 修改一个用户，id用户id,user用户信息*/
export const createUpdateUserAction = (id, user) => ({ type: ADDUSER, payload: { user, id } })
/** 删除一个用户，id用户id*/
export const createDelUserAction = (id) => ({ type: ADDUSER, payload: id })

